package com.daiqee.pojo;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 账号
 * 
 * <br/>
 * @since JDK 1.8
 * @version  V2.1
 * @author RichardTang 
 * @date: 2018年5月7日 下午5:49:03
 * @package com.daiqee.pojo
 * @copyright:Copyright (c) 2018, 1245811923@qq.com All Rights Reserved.
 */
@TableName(value="user")
public class User implements Serializable{
	
	@TableField(exist=false)
	private static final long serialVersionUID = 1L;

	@TableId(type=IdType.AUTO)
    private Integer 	userId;  		//id号-主键

	@TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String 		userName; 		//账号名

    private String 		userPassword;	//账号密码

    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String 		useAuthor;		//账号持有者
    
    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private Integer 	userRole;		//账号(职位)角色

    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private Integer 	userDepartment;	//角色所属部门
    
    private String 		userLinkMethod;	//持有者联系方式

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date 		userCreateTime;	//账号创建时间

    private String 		userRemark;		//备注信息

    public User() {
		super();
	}

	public User(String userName, String userPassword) {
		super();
		this.userName = userName;
		this.userPassword = userPassword;
	}

	
	public Integer getUserDepartment() {
		return userDepartment;
	}

	public void setUserDepartment(Integer userDepartment) {
		this.userDepartment = userDepartment;
	}

	public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword == null ? null : userPassword.trim();
    }

    public String getUseAuthor() {
        return useAuthor;
    }

    public void setUseAuthor(String useAuthor) {
        this.useAuthor = useAuthor == null ? null : useAuthor.trim();
    }

    public Integer getUserRole() {
        return userRole;
    }

    public void setUserRole(Integer userRole) {
        this.userRole = userRole;
    }

    public String getUserLinkMethod() {
        return userLinkMethod;
    }

    public void setUserLinkMethod(String userLinkMethod) {
        this.userLinkMethod = userLinkMethod == null ? null : userLinkMethod.trim();
    }

    public Date getUserCreateTime() {
        return userCreateTime;
    }

    public void setUserCreateTime(Date userCreateTime) {
        this.userCreateTime = userCreateTime;
    }

    public String getUserRemark() {
        return userRemark;
    }

    public void setUserRemark(String userRemark) {
        this.userRemark = userRemark == null ? null : userRemark.trim();
    }
}